const express = require('express');
const userInfo_handler = require('../router_handler/userInfo');
const expressJoin = require('@escook/express-joi')
const {update_userInfo_schema,update_password_schema} = require('../schema/user')

const router = express.Router();
// 获取用户信息
router.get('/userInfo',userInfo_handler.getUserInfo)
// 更新用户信息
router.post('/userInfo',expressJoin(update_userInfo_schema),userInfo_handler.updateUserInfo)
// 修改密码
router.post('/update/password',expressJoin(update_password_schema),userInfo_handler.updatePassword)


module.exports = router